home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 6_functions / common < prev    next >
Encoding:
Text File  |  2002-10-28  |  1.0 KB  |  30 lines

  1. Synopsis:
  2.    $common(<word list> / <word list>)
  3.    $diff(<word list> / <word list>)
  4.  
  5. Technical:
  6.    These functions are exact opposites.  The $common() function finds and
  7.    returns all words common to both input lists.  The $diff() function
  8.    funds are returns all words present in only one list.  The two input
  9.    lists must be separated by a single forward-slash.  Whitespace is not
  10.    significant.
  11.  
  12. Practical:
  13.    These functions might be considered useful for statistical information.
  14.    For instance, given 2 channels, they could be used to show who is and
  15.    isn't on both of them.
  16.  
  17. Returns:
  18.    common: words in both lists
  19.    diff:   words not in both lists
  20.  
  21. Examples:
  22.    $common(one two three / two three four)     returns "two three"
  23.    $common(one two / three four)               returns ""  (empty string)
  24.    $diff(one two three / two three four)       returns "one four"
  25.    $diff(one two / one two)                    returns ""  (empty string)
  26.  
  27. See Also:
  28.    common(6); remws(6); uniq(6)
  29.  
  30.